<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmProvincias.aspx.vb" Inherits="TGB.FrmProvincias" 
    title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="DIV1" style="width: 100%; height: 18px; text-align: right; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Provincias" Font-Underline="False" Height="8px"></asp:Label></div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 464px; height: 112px; text-align: center;" >
        <tr>
            <td align="right" style="width: 17%; height: 22px;">
                Nombre de Provincia:</td>
            <td style="width: 22%; height: 22px;" align="left" >
                <asp:TextBox ID="TxtLocalidad" runat="server" CssClass="campotxt" Width="320px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFVTxtProvincia" runat="server" ControlToValidate="TxtLocalidad"
                    ErrorMessage="Ingrese un Nombre" CssClass="LabelErrorSmall"></asp:RequiredFieldValidator></td>
        </tr>
                    <tr>
                <td align="right" colspan="2" style="height: 21px">
                    <asp:LinkButton ID="LinkGuardar" runat="server" CssClass="BotonLink">Guardar</asp:LinkButton>/
                    <asp:LinkButton ID="LinkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton>/
                    <asp:LinkButton ID="LinkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton>/
                    <asp:LinkButton ID="LinkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>/
                    <asp:LinkButton ID="LinkModificar" runat="server" CssClass="BotonLink">Modificar</asp:LinkButton>
               </td>
            </tr>
        
            </table>
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridLocalidades" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Peru"
            BorderWidth="1px" CellPadding="2" CssClass="tabla" EnableSortingAndPagingCallbacks="True"
            ForeColor="Black" GridLines="None" PageSize="10" Style="vertical-align: middle; text-align: center;" Width="100%" Height="1px">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="Tan" />
            <Columns>
                <asp:TemplateField HeaderText="CodigoProv">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CodigoLocalidad") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkVer" runat="server" CssClass="BotonLink">Ver</asp:LinkButton>
                        <asp:HiddenField ID="HdLocalidades" runat="server" Value='<%# bind("CodigoProv") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nombre">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Nombre") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblNombre" runat="server" Text='<%# Bind("Nombre") %>' CssClass="CampoLbl"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <PagerStyle BackColor="Tan" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
        </asp:GridView>
    </div>
</asp:Content>
